<div class="row-fluid">
	<div class="span12">
                    <div class="head">
                        <div class="isw-documents"></div>
                        <h1>Thống kê chi tiết doanh thu </h1>
                        <div class="clear"></div>
                    </div>
                    <div class="block-fluid">                 
                        <?php echo form_open_multipart('admincp/searchtotalbymonth'); ?>
                        <div class="row-form">
                            <div class="span3">Tháng</div>
                            <div class="span7">
								<select name="thangdate" id="thangdate" onchange="changeitem(this);"> 
									<option value="1">1</option>
									<option value="2">2</option>
									<option value="3">3</option>
									<option value="4">4</option>
									<option value="5">5</option>
									<option value="6">6</option>
									<option value="7">7</option>
									<option value="8">8</option>
									<option value="9">9</option>
									<option value="10">10</option> 
									<option value="11">11</option>
									<option value="12">12</option> 
								</select>
							</div>
                            <div class="clear"></div>
                        </div>
                        <div class="row-form">
                            <div class="span3">Năm</div>
                            <div class="span7">
								<select name="namedate" id="namdate"  onchange="changeitem(this);"> 
									<option value="2010" selected="selected" >2010</option>
									<option value="2011"  >2011</option>
									<option value="2012"  >2012</option>
									<option value="2013" >2013</option>
									<option value="2014"  >2014</option>
									<option value="2015"  >2015</option>
									<option value="2016"  >2016</option>
									<option value="2017"  >2017</option>
									<option value="2018"  >2018</option>
									<option value="2019"  >2019</option>
									<option value="2020"  >2020</option>
									 
								</select>
							</div>
                            <div class="clear"></div>
                        </div>
                        <div class="row-form">
                            <div class="span3"> </div>
                            <div class="span9"><script type="text/javascript"  >
							function changeitem(selectObj){  
								var thang = document.getElementById("thangdate").options[document.getElementById("thangdate").selectedIndex].value;
								var nam = document.getElementById("namdate").options[document.getElementById("namdate").selectedIndex].value;
								var id=selectObj.value;
								var dataString =  thang+" "+nam ; 
						    		$.ajax({
						            url: "<?php echo base_url().'index.php/admincp/totalinmonth/';?>"+ dataString ,
						            type:'POST', 
						            data: dataString, 
						            success: function(output_string){ 
						                    $(".resultajax").html(output_string);
						                },
						                error: function(){
						                	$(".resultajax").html("error null");
						                  }  
						            });  
						 
								}
						</script><span class="resultajax"> </span></div>
                            <div class="clear"></div>
                        </div> 
                        <?php echo form_close(); ?>  
                    </div>
                </div>
</div>